import { Parser, Token, TokenType } from '../src/parser';
import { Generator } from '../src/generator';

const testString = '@h1 KB4409 testing\n\nSome testing\n\n@code:\ncode{}@code{}\n\n@@\n\n@b{aa} @color(red){babab}\n\n';

let parser = new Parser(testString);
let anotherParser = new Parser(testString);
let token: Token;
let gen = new Generator(parser);

do {
	token = anotherParser.emit();
	console.log(token);
} while (token.type != TokenType.EOF);
console.log(gen.generateHTML());
